using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using RideMe.Core;
using ICSharpCode.TextEditor;

namespace RideMe.Presentation
{
    public partial class ProjectStatsDialog : DialogBase
    {
        public ProjectStatsDialog()
        {
            InitializeComponent();
            SetupTextEditor();
        }

        public string Stats
        {
            get { return textEditorControl.Text; }
            set { textEditorControl.Text = value; }
        }

        private void SetupTextEditor()
        {
            textEditorControl.TextEditorProperties.ShowEOLMarker = false;
            textEditorControl.TextEditorProperties.ShowInvalidLines = false;
            textEditorControl.TextEditorProperties.ShowVerticalRuler = false;
            textEditorControl.TextEditorProperties.ShowSpaces = false;
        }

        private void copyToolStripMenuItem_Click(object sender, EventArgs e)
        {
            textEditorControl.ActiveTextAreaControl.TextArea.ClipboardHandler.Copy(
                this, EventArgs.Empty);

        }
	
    }
}